#pragma once

#include "ILCommon.h"
#include "xnamath.h"
#include "mymath.h"

class CCamera
{
public:
	CCamera(void);
	~CCamera(void);

	void Init();

	//Movement
	void Scroll(vec3 vec);	//Move Focus
	void Pitch(float f);			//Change B-angle
	void Yaw(float f);				//Change A-angle
	void Zoom(float f);				//Change FOV
	void ChangeRadius(float f);		//Change Radius... douh

	//Calculate Eye position etc
	void Update(float timeDelta);

	//Calculate Matrices
	mat4 GetViewMatrix();
	mat4 GetProjectionMatrix();

private:

	float m_alpha, m_beta, m_radius, m_fov;
	vec3 m_eye, m_focus, m_right, m_look;
};

